<?php
/*--------------------------------------------------------------------------
# Character Table for TOR RaidPlanner 
# ------------------------------------------------------------------------*/
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

class TableCharacter extends JTable
{
	/**
	 * Primary Key
	 *
	 * @var int
	 */
	var $character_id = null;

	/**
	 * @var string
	 */
	var $character_name = null;

	/**
	 * Foreign Key to Users Table
         * @var int
	 */
	var $user_id	= null;

	/**
	 * Foreign Key to Class Table
         * @var int
	 */
	var $class_id = null;

        /**
	 * @var Boolean
	 */
        var $maincharacter = null;

	/**
	 * Armory link should TOR have one
	 * @var string
	 */
	var $character_url = null;

	/**
	 * Constructor
	 *
	 * @param object Database connector object
	 */
	function TableCharacter(& $db) {
		parent::__construct('#__torrp_characters', 'character_id', $db);
	}
}